package com.lsyw.intergrate.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lsyw.intergrate.entity.TransportWorkOrder;
import com.lsyw.intergrate.entity.TransportWorkOrderAlarm;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 运输工单告警信息 服务类
 * </p>
 *
 * @author 刘磊
 * @since 2023-12-14
 */
public interface TransportWorkOrderAlarmService extends IService<TransportWorkOrderAlarm> {

    /**
     *
     * @param latitudeAndLongitude 经纬度
     * @param transportWorkOrder 工单对象
     * @param type 类型（1：线路偏移，2：土壤到期未销毁）
     * @param gpsNo gps设备号
     */
    void saveAlarm(String latitudeAndLongitude,TransportWorkOrder transportWorkOrder,int type,String gpsNo);

    IPage<TransportWorkOrderAlarm> pageList(Page<TransportWorkOrderAlarm> page, Map<String, Object> condition);

    TransportWorkOrderAlarm getInfoById(String id);
}
